// samsting : this file is auto create.

#include "Ons/2015-10-20/OnsMessageGetByTopicResponse.h"

namespace aliyun { namespace Ons {

OnsMessageGetByTopicResponse::OnsMessageGetByTopicResponse() {
}

const string& OnsMessageGetByTopicResponse::OnsRestMessageDo::MessageProperty::GetName(void) const {
  return Name_;
}

const string& OnsMessageGetByTopicResponse::OnsRestMessageDo::MessageProperty::GetValue(void) const {
  return Value_;
}

const std::vector<OnsMessageGetByTopicResponse::OnsRestMessageDo::MessageProperty>& OnsMessageGetByTopicResponse::OnsRestMessageDo::GetPropertyList(void) const {
  return PropertyList_;
}

const string& OnsMessageGetByTopicResponse::OnsRestMessageDo::GetTopic(void) const {
  return Topic_;
}

int OnsMessageGetByTopicResponse::OnsRestMessageDo::GetFlag(void) const {
  return Flag_;
}

const string& OnsMessageGetByTopicResponse::OnsRestMessageDo::GetBody(void) const {
  return Body_;
}

int OnsMessageGetByTopicResponse::OnsRestMessageDo::GetQueueId(void) const {
  return QueueId_;
}

int OnsMessageGetByTopicResponse::OnsRestMessageDo::GetStoreSize(void) const {
  return StoreSize_;
}

int64 OnsMessageGetByTopicResponse::OnsRestMessageDo::GetQueueOffset(void) const {
  return QueueOffset_;
}

int OnsMessageGetByTopicResponse::OnsRestMessageDo::GetSysFlag(void) const {
  return SysFlag_;
}

int64 OnsMessageGetByTopicResponse::OnsRestMessageDo::GetBornTimestamp(void) const {
  return BornTimestamp_;
}

const string& OnsMessageGetByTopicResponse::OnsRestMessageDo::GetBornHost(void) const {
  return BornHost_;
}

int64 OnsMessageGetByTopicResponse::OnsRestMessageDo::GetStoreTimestamp(void) const {
  return StoreTimestamp_;
}

const string& OnsMessageGetByTopicResponse::OnsRestMessageDo::GetStoreHost(void) const {
  return StoreHost_;
}

const string& OnsMessageGetByTopicResponse::OnsRestMessageDo::GetMsgId(void) const {
  return MsgId_;
}

int64 OnsMessageGetByTopicResponse::OnsRestMessageDo::GetCommitLogOffset(void) const {
  return CommitLogOffset_;
}

int OnsMessageGetByTopicResponse::OnsRestMessageDo::GetBodyCRC(void) const {
  return BodyCRC_;
}

int OnsMessageGetByTopicResponse::OnsRestMessageDo::GetReconsumeTimes(void) const {
  return ReconsumeTimes_;
}

int64 OnsMessageGetByTopicResponse::OnsRestMessageDo::GetPreparedTransactionOffset(void) const {
  return PreparedTransactionOffset_;
}

const std::vector<OnsMessageGetByTopicResponse::OnsRestMessageDo>& OnsMessageGetByTopicResponse::GetData(void) const {
  return Data_;
}

const string& OnsMessageGetByTopicResponse::GetHelpUrl(void) const {
  return HelpUrl_;
}

const char* OnsMessageGetByTopicResponse::BaseKey(void) {
  return "OnsMessageGetByTopicResponse";
}

void OnsMessageGetByTopicResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Data__length = 0;
  UnmarshallerInt(Data__length, response_map, "OnsMessageGetByTopicResponse.Data.Length");
  if(Data__length >= 0) {
    Data_.resize(Data__length);
    for(int i1 = 0; i1 < Data__length; i1++) {
      int Data_i1_PropertyList__length = 0;
      UnmarshallerInt(Data_i1_PropertyList__length, response_map, "OnsMessageGetByTopicResponse.Data[+"+string_ValueOfInt(i1)+"].PropertyList.Length");
      if(Data_i1_PropertyList__length >= 0) {
        Data_[i1].PropertyList_.resize(Data_i1_PropertyList__length);
        for(int i2 = 0; i2 < Data_i1_PropertyList__length; i2++) {
          UnmarshallerString(Data_[i1].PropertyList_[i2].Name_, response_map, "OnsMessageGetByTopicResponse.Data[+"+string_ValueOfInt(i1)+"].PropertyList["+string_ValueOfInt(i2)+"].Name");
          UnmarshallerString(Data_[i1].PropertyList_[i2].Value_, response_map, "OnsMessageGetByTopicResponse.Data[+"+string_ValueOfInt(i1)+"].PropertyList["+string_ValueOfInt(i2)+"].Value");
        } // for(int i2 = 0; i2 < Data_i1_PropertyList__length; i2++) {
      } // if(Data_i1_PropertyList__length >= 0) {

      UnmarshallerString(Data_[i1].Topic_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].Topic");
      UnmarshallerInt(Data_[i1].Flag_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].Flag");
      UnmarshallerString(Data_[i1].Body_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].Body");
      UnmarshallerInt(Data_[i1].QueueId_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].QueueId");
      UnmarshallerInt(Data_[i1].StoreSize_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].StoreSize");
      UnmarshallerInt64(Data_[i1].QueueOffset_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].QueueOffset");
      UnmarshallerInt(Data_[i1].SysFlag_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].SysFlag");
      UnmarshallerInt64(Data_[i1].BornTimestamp_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].BornTimestamp");
      UnmarshallerString(Data_[i1].BornHost_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].BornHost");
      UnmarshallerInt64(Data_[i1].StoreTimestamp_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].StoreTimestamp");
      UnmarshallerString(Data_[i1].StoreHost_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].StoreHost");
      UnmarshallerString(Data_[i1].MsgId_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].MsgId");
      UnmarshallerInt64(Data_[i1].CommitLogOffset_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].CommitLogOffset");
      UnmarshallerInt(Data_[i1].BodyCRC_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].BodyCRC");
      UnmarshallerInt(Data_[i1].ReconsumeTimes_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].ReconsumeTimes");
      UnmarshallerInt64(Data_[i1].PreparedTransactionOffset_, response_map, "OnsMessageGetByTopicResponse.Data["+string_ValueOfInt(i1)+"].PreparedTransactionOffset");
    } // for(int i1 = 0; i1 < Data__length; i1++) {
  } // if(Data__length >= 0) {

  UnmarshallerString(HelpUrl_, response_map, "OnsMessageGetByTopicResponse.HelpUrl");
}


} } // namespace aliyun { namespace Ons {

// end of file 
